import React, { Component } from 'react'
import './index.css'

// !#2. 通过 this.props 接收数据
export default class Child extends Component {
  render() {
    const { name, price, info } = this.props
    return (
      <div className='child'>
        <h3 className='title'>标题：{name}</h3>
        <p className='price'>价格：{price}</p>
        <p className='product'>{info}</p>
      </div>
    )
  }
}
